if __name__ == '__main__':
    myinput = input("请输入")
    ls = myinput.split(",")
    s = 0
    for c in ls:
        if c.strip().isdigit():
            s += int(c)
    print("数字和是："+str(s))